package com.guopiao.vat.common.general.constants;

/**
 *  
 *  * @Author: Xander Xiao
 *  * @Description:
 *  @Date:Create in 2017/8/3
 *  
 */

public enum InvoiceState {
    SUCCEED("0000","请求成功"),
    ALREADYSUCCEED("1000","已开具"),
    FAILED("0001","请求失败"),
    TIMEOUT("0002","请求超时"),
    EMPTY("2000","请求业务数据为空"),
    VALIDATOR("2001","请求报文校验错误"),
    REPEATDATA("2002","数据重复，添加失败"),
    EMPTYREQUEST("2003","请求参数为空"),
    CONFIGERROR("3000","系统配置信息错误"),
    NOCOMMODITYCODE("3001","商品编码不存在"),
    NOTAXCONFIG("3002","流水所属机构未配置开票信息"),
    ROGRAMERROR("4000","程序内部错误");
    private String code;
    private String msg;
    private InvoiceState(String code,String msg){
        this.code = code;
        this.msg = msg;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
